package com.lch.designpattern.prototype.work;

import lombok.Data;

/**
 * @author: liuchenhui
 * @create: 2019-04-21 13:23
 **/
@Data
public class Paper implements Prototype {
    private String name;
    private String number;
    private Integer score;

    @Override
    protected Paper clone() {
        Paper p = new Paper();
        p.setName(this.name);
        p.setNumber(this.number);
        p.setScore(this.score);
        return p;
    }
}
